package com.millstein.tsinglog.model.vo.biz;

import com.millstein.tsinglog.model.pojo.Category;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class CategoryVo extends Category {
    private String link; // 前台list页面使用，放置跳转的链接

    public CategoryVo(Category category) {
        BeanUtils.copyProperties(category, this);
    }
}
